<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>show</title>
</head>
<body>
<a th:href="@{/toadd}">添加</a>
<form th:action="@{/findall}" method="post">
    <input name="ename">
    <input type="submit" value="搜索">
</form>
<table border="1">
    <tr>
        <th>id</th>
        <th>ename</th>
        <th>age</th>
        <th>sex</th>
        <th>dname</th>
        <th>hobby</th>
        <th>操作</th>
    </tr>
    <tr th:each="e : ${list}">
        <th th:text="${e.eid}"></th>
        <th th:text="${e.ename}"></th>
        <th th:text="${e.age}"></th>
        <th th:text="${e.sex}"></th>
        <th th:text="${e.dname}"></th>
        <th th:text="${e.hobby}"></th>
        <th>
            <a th:href="@{/deletebyeid(id=${e.eid})}">删除</a>
            <a th:href="@{/findbyid(id=${e.eid})}">修改</a>
        </th>
    </tr>
</table>
</body>
</html>